package com.itany.corejava.day10;

public abstract class Graphics implements Cloneable,Comparable<Graphics> {

    public abstract double area();

    @Override
    public int compareTo(Graphics o) {
        return new Double(this.area()).compareTo(o.area());
    }
}
